package com.edevp.common.core.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Blueeyedboy
 * @create 2022-07-05 5:56 PM
 **/
public class EngineException extends RuntimeException {
	@Getter
	@Setter
	protected int code = ExceptionCode.SERVER_ERROR;
	@Getter
	@Setter
	protected String msg;
	public EngineException(int code){
		this.code = code;
	}
	public EngineException(int code, String msg){
		super(msg);
		this.code = code;
	}
	public EngineException(String msg){
		this.msg = msg;
	}
	public EngineException(Throwable cause){
		super(cause);
	}

}
